//
//  OpenInBrowserAction.m
//  NetEaseFinancial
//
//  Created by 吴玉峰 on 8/27/15.
//  Copyright (c) 2015 吴玉峰. All rights reserved.
//

#import "WYFOpenInBrowserAction.h"

#import "WYFShareHolder.h"
#import <UIKit/UIKit.h>

@implementation WYFOpenInBrowserAction

- (NSString *)getIconName {
    return @"share_action_browser";
}

- (NSString *)getLabelName {
    return NSLocalizedString(@"在浏览器\n中打开", @"share_action_browser");
}

- (BOOL)shareWithHolder:(WYFShareHolder *)holder {
    [super shareWithHolder:holder];
    NSURL *url = [NSURL URLWithString:holder.webUrl];
    [[UIApplication sharedApplication] openURL:url];
    return YES;
}

@end
